<?php
namespace BP\En;
class Group extends EntityNoName {
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->setNo($no);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = Map::constructor__String_String("GPM_Group", "权限�?");
		$map->setEnType(EnType::$Sys);
		$map->setIsAutoGenerNo( TRUE );
			/* match: String_String_String_b_b_I_I_I */
		$map->AddTBStringPK_String_String_String_b_b_I_I_I(GroupAttr::$No, NULL, "编号",  TRUE ,  TRUE , 3, 3, 3);
			/* match: String_String_String_b_b_I_I_I */
		$map->AddTBString_String_String_String_b_b_I_I_I(GroupAttr::$Name, NULL, "名称",  TRUE ,  FALSE , 0, 300, 20);
			/* match: String_I_String_b_b */
		$map->AddTBInt_String_I_String_b_b(GroupAttr::$Idx, 0, "显示顺序",  TRUE ,  FALSE );
			/* match: Entities_Entities_String_String_String_String_String */
		$map->getAttrsOfOneVSM()->Add_Entities_Entities_String_String_String_String_String(new GroupEmps(), new Emps(), $GroupEmpAttr->FK_Group, $GroupEmpAttr->FK_Emp, $EmpAttr->Name, $EmpAttr->No, "人员(�?�?)");
			/* match: Entities_Entities_String_String_String_String_String_String_String */
		$map->getAttrsOfOneVSM()->AddBranchesAndLeaf_Entities_Entities_String_String_String_String_String_String_String(new GroupEmps(), new Emps(), $GroupEmpAttr->FK_Group, $GroupEmpAttr->FK_Emp, "人员(�?)", $EmpAttr->FK_Dept, $EmpAttr->Name, $EmpAttr->No, "@WebUser.getFK_Dept()");
			/* match: Entities_Entities_String_String_String_String_String */
		$map->getAttrsOfOneVSM()->Add_Entities_Entities_String_String_String_String_String(new GroupStations(), new Stations(), $GroupEmpAttr->FK_Group, $GroupStationAttr->FK_Station, $EmpAttr->Name, $EmpAttr->No, "岗位(�?�?)");
			/* match: Entities_Entities_String_String_String_String */
		$map->getAttrsOfOneVSM()->AddGroupListModel_Entities_Entities_String_String_String_String(new GroupStations(), new Stations(), $GroupStationAttr->FK_Group, $GroupStationAttr->FK_Station, "岗位(平铺)", $StationAttr->FK_StationType);
		$this->set_enMap($map);
		return $map;
	}
}
?>
